package cn.bobdeng.spc.mainserver.security;

import lombok.Data;

import java.util.List;

@Data
public class UserProfile {
    private String loginName;
    private String name;
    private List<String> roles;

    public UserProfile(MyUserDetails details) {
        this.name = details.getName();
        this.loginName = details.getUsername();
        this.roles = details.getRoles();
    }
}
